<?php

error_reporting(E_ALL);

/**
 * LaboratorioinDRE - class.setter.php
 *
 * $Id$
 *
 * This file is part of LaboratorioinDRE.
 *
 * Automatically generated on 13.11.2009, 18:18:18 with ArgoUML PHP module 
 * (last revised $Date: 2008-04-19 08:22:08 +0200 (Sat, 19 Apr 2008) $)
 *
 * @author Miguel Angel Chavez Obregon
 * @see Clase para setear informacion de forma dinamica.
No se requiere declarar ningun otro valor.
 * @version 1.0
 */

if (0 > version_compare(PHP_VERSION, '5')) {
    die('This file was generated for PHP 5');
}

/* user defined includes */
// section -64--88--126-60-39eb1680:124ee35672f:-8000:0000000000001128-includes begin
// section -64--88--126-60-39eb1680:124ee35672f:-8000:0000000000001128-includes end

/* user defined constants */
// section -64--88--126-60-39eb1680:124ee35672f:-8000:0000000000001128-constants begin
// section -64--88--126-60-39eb1680:124ee35672f:-8000:0000000000001128-constants end

/**
 * Short description of class setter
 *
 * @access public
 * @author Miguel Angel Chavez Obregon
 * @see Clase para setear informacion de forma dinamica.
No se requiere declarar ningun otro valor.
 * @version 1.0
 */
class setter
{
    // --- ASSOCIATIONS ---


    // --- ATTRIBUTES ---

    /**
     * Short description of attribute valor
     *
     * @access private
     * @var String
     */
    private $valor = null;

    // --- OPERATIONS ---

    /**
     * Short description of method __call
     *
     * @access public
     * @author Miguel Angel Chavez OBregon
     * @param  int method
     * @param  int argument
     * @return void
     * @see Clase para generar get y set de usuario que esta en session
     * @version 1.0
     */
    public function __call($method, $arguments)
    {
        // section -64--88--126-60-39eb1680:124ee35672f:-8000:000000000000113E begin
          $prefix = strtolower(substr($method, 0, 3));
          $property = strtolower(substr($method, 3));

            if (empty($prefix) || empty($property)) {
                return;
            }

            if ($prefix == "get" && isset($this->$property)) {
                return $this->$property;
            }

            if ($prefix == "set") {
                $this->$property = $arguments[0];
            }

        // section -64--88--126-60-39eb1680:124ee35672f:-8000:000000000000113E end
    }

} /* end of class setter */

?>